x86/MSI: don't risk division by zero
authorJan Beulich <jbeulich@suse.com>
Mon, 24 Feb 2014 11:11:01 +0000 (12:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 24 Feb 2014 11:11:01 +0000 (12:11 +0100)
commit5d160d913e03b581bdddde73535c18ac670cf0a9
tree9f8a10e65a3511fcd13f8034ebfad97d7b333d9c
parentfd1864f48d8914fb8eeb6841cd08c2c09b368909
x86/MSI: don't risk division by zero

The check in question is redundant with the one in the immediately
following if(), where dividing by zero gets carefully avoided.

Spotted-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/msi.c